From 7cb4fb980685a7c4e6ea4c825ede18c64dd66d37 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 26 Sep 2003 13:12:28 +0000 Subject: [PATCH] From Rick: Add iconismarker. --- gpsbabel/tiger.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsbabel/tiger.c b/gpsbabel/tiger.c index 1f527361b..8100299fc 100644 --- a/gpsbabel/tiger.c +++ b/gpsbabel/tiger.c @@ -44,6 +44,7 @@ static char *oldmarker = "redpin"; static char *newmarker = "greenpin"; static char *unfoundmarker = "bluepin"; static char *suppresswhite = NULL; +static char *iconismarker = NULL; int scalev; int short_length; @@ -83,6 +84,8 @@ arglist_t tiger_args[] = { ARGTYPE_INT}, {"ypixels", &ypixels, "Height in pixels of map.", ARGTYPE_INT}, + {"iconismarker", &iconismarker, + "The icon description is already the marker", ARGTYPE_BOOL }, #if CLICKMAP {"clickmap", &clickmap, "Generate Clickable map web page.", ARGTYPE_BOOL}, @@ -157,7 +160,9 @@ tiger_disp(const waypoint *wpt) double lat = wpt->position.latitude.degrees; double lon = wpt->position.longitude.degrees; - if (wpt->icon_descr && strstr(wpt->icon_descr, "-unfound")) + if (iconismarker) + pin = wpt->icon_descr ? wpt->icon_descr : ""; + else if (wpt->icon_descr && strstr(wpt->icon_descr, "-unfound")) pin = unfoundmarker; else if (wpt->creation_time > time(0) - 3600 * 24 * thresh_days) pin = newmarker; -- 2.30.2